﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<script runat="server">



    protected void Button2_Click1(object sender, EventArgs e)
    {
        Response.Redirect("~/ItinerarioViajes.aspx");
    }

    protected void Button1_Click1(object sender, EventArgs e)
    {
        if (TextBox1.Text.Equals(""))
            lblError.Text = "Debe ingresar el campo: Hora";
        else
            Response.Redirect("~/ItinerarioViajesModificado.aspx");
    }
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form id="form1" runat="server">
<div></div>
<div>
    <asp:Label ID="Label1" runat="server" Text="Modificar Itinerario" Font-Bold="True" 
        Font-Size="Medium"></asp:Label></div>
<div></div>
<div>
    <table>
        <tr>
            <td>
                <asp:Label ID="Label2" runat="server" Text="Fecha"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label3" runat="server" Text=":"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TextBox2" runat="server" Width="83px">27/09/2012</asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label4" runat="server" Text="Hora"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label5" runat="server" Text=":"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TextBox1" runat="server" Width="83px">10:20</asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label6" runat="server" Text="Origen"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label7" runat="server" Text=":"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="DropDownList3" runat="server">
                    <asp:ListItem>Lima</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label8" runat="server" Text="Destino"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label9" runat="server" Text=":"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="DropDownList2" runat="server">
                    <asp:ListItem>Chimbote</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label10" runat="server" Text="Bus"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label11" runat="server" Text=":"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="DropDownList1" runat="server">
                    <asp:ListItem>T3E-326</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
    </table>
</div>
<div></div>
<div>
            
    <asp:Button ID="Button1" runat="server" Text="Grabar" 
        onclick="Button1_Click1" />
    <asp:Button ID="Button2" runat="server" Text="Regresar" 
        onclick="Button2_Click1" />
            
</div>
<div>
</div>
<div><asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label></div>
<div></div>
    </form>
</asp:Content>
